

#ifndef _SHELL_RESALLFIGHTLOG_MESSAGE_H_
#define _SHELL_RESALLFIGHTLOG_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include "VsInfoLog.h"
//#include <vector>
using namespace std;

class ResAllFightLogMessage : public Message
{
	public:
	ResAllFightLogMessage();
	~ResAllFightLogMessage();
	void reset();
	ResAllFightLogMessage* clone();
	static const int _ID;
	//战斗类型1。普通。2特殊。3强制
	int8 fightType;
	//是否成功0否1是
	int8 isVictor;
	//类型名称
	std::string victorName;
	//挑战帮会名称
	std::string chalengerName;
	//被挑战者名称
	std::string toChalengerName;
	//挑战者服务器排名Id
	int16 chalengerServerRankId;
	//被挑战者服务器排名Id
	int16 tochalengerServerRankId;
	//挑战者人数
	int16 chalengerNum;
	//被挑战者人数
	int16 tochalengerNum;
	//所有对战信息日志
	vector<VsInfoLog*> vsInfoLog;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
